﻿using Simple.Contracts.Models;
using Simple.Contracts.Models.Common;
using Simple.Contracts.Models.Common.Page;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Simple.Contracts.Contracts
{
    /// <summary>
    /// 员工
    /// </summary>
    public interface IEmployeeService
    {
        /// <summary>
        /// 员工列表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<Result<PageDto<EmployeeDto>>> List(EmployeeListInput input);

        /// <summary>
        /// 保存员工信息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<Result<string>> Save(EmployeeSaveInput input);

        /// <summary>
        /// 删除员工
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<Result<bool>> Delete(EmployeeDeleteInput input);

        /// <summary>
        /// 重置密码
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<Result<string>> ResetPassword(EmployeeResetPasswordInput input);

        /// <summary>
        /// 设置员工状态
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<Result<bool>> SetStatus(EmployeeSetStatusInput input);
    }
}
